#pragma once

#include <map>
#include "tcp_message.hpp"

using MessageType_t = std::map<std::string, int>;
class TcpClient;
class MessageHandler
{
public:

	MessageHandler(const MessageType_t& messageTypes, TcpClient* client);
	void onReadHeader(TcpMessage msg);
	void onReadBody(TcpMessage msg);

private:
	MessageHandler() = delete;
	MessageType_t _messageTypes;
	TcpClient* _client = 0;
};